# Makefile
# ----------------------------------------------
# Author : Woo-Hyun Kim
# E-mail : woorung@nhncorp.com or woorung@gmail.com
# Date : Oct. 29, 2008

coord_lib = -L/home/woorung/wn/lib -lcoord -lwooh
coord_inc = -I/home/woorung/wn/include

other_lib = -lpthread -lmagic -lz -ldl

app_srcs = $(wildcard *.cpp)
app_exes = $(app_srcs:%.cpp=%)
app_objs = $(app_srcs:%.cpp=%.o)


all : $(app_exes)

$(app_exes) : %: %.o
	g++ -o $@ $< $(coord_lib) $(other_lib)

$(app_objs) : %.o: %.cpp
	g++ -c $< $(coord_inc)

clean :
	rm -rf $(app_exes) $(app_objs)
